//
//  CWCimgCellBig.m
//  ChuanNews
//
//  Created by dllo on 16/4/23.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CWCimgCellBig.h"
#import "BaseHeader.h"
@implementation CWCimgCellBig
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageV = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV];
        
        self.titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
        
        [self jxl_setDayMode:^(UIView *view) {
            CWCimgCellBig *cell = (CWCimgCellBig *)view;
            cell.backgroundColor = [UIColor whiteColor];
            cell.contentView.backgroundColor = [UIColor whiteColor];
            cell.titleLabel.backgroundColor = [UIColor whiteColor];
            cell.titleLabel.textColor = [UIColor blackColor];
            
        } nightMode:^(UIView *view) {
            CWCimgCellBig *cell = (CWCimgCellBig *)view;
            cell.backgroundColor = [UIColor blackColor];
            cell.contentView.backgroundColor = [UIColor blackColor];
            cell.titleLabel.backgroundColor = [UIColor blackColor];
            cell.titleLabel.textColor = [UIColor whiteColor];
                  }];

    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageV.frame = CGRectMake(5, 5, WIDTH - 10, 270);
    self.titleLabel.frame = CGRectMake(5, 275, WIDTH - 5, 25);
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
